/**
 * Created by levy on 16/5/16.
 */
(function (lf, w) {
    lf.finger = {

        imgUrl: {
            finger: '../public/images/finger/',

            //约图片
            yue: '../public/images/yue/',

            //物业图片
            property: '../public/images/property/'

        },

        //跳转到native
        viewCode: {
            //我的资料:设置
            meSetting: 'property_setting',
            
            //通讯录
            addressBook: 'addressBook',

            //物业
            property: {
                //小区简介/小区介绍
                introduction: 'property_introduction',
                //物业须知
                needToKnow: 'property_needToKnow',
                //小区公告
                publicNotice: 'property_publicNotice',
                //社区动态
                news: 'property_news',
                //通知
                notification: 'property_notification',
                //温馨提示
                tips: 'property_tips',
                //费用提醒
                costRemind: 'property_costRemind',
                //获取邀请码
                invitationCode: 'property_invitationCode',
                //订单管理
                orderManagement: 'property_orderManagement',
                //通讯录
                addressBook: 'property_addressBook',
                //房屋住户
                houseTenants: 'property_houseTenants',
                //报事
                report: 'property_report',
                //费用查询
                chargesQuery: 'property_chargesQuery',
                //抄表
                meterChecking: 'property_meterChecking',
                //客服
                customerService: 'property_customerService',
                //消息
                message: 'property_message',
                //切换小区
                choseVillage: 'choseVillage',
                //停车场
                parking: 'property_parking'

            }
        },

        //TODO 注：loginId：其实是user.id
        api: {
            //指点首页轮播图
            homeImages: '/api/finger/project/getHomeImages',

            //小区信息
            project: '/api/finger/project/getProject',

            //问卷调查
            survey: {
                //查询个人提交答案
                queryAnswer: '/api/finger/questionnaire/listByUserId',

                //问卷调查列表
                listQuestionnaires: '/api/finger/questionnaire/listQuestionnaires',

                //获取【问卷调查】所有【题目和题目选项】
                getSubjectsAndItems: '/api/finger/questionnaire/getSubjectsAndItems',

                //获取【问卷调查】详情
                getQuestionnaireInfo: '/api/finger/questionnaire/getQuestionnaireInfo',

                //创建【投票结果】
                createVotes: '/api/finger/questionnaire/createVotes',

                //答题完成，提交答卷
                commitQuestionnaire: '/api/finger/questionnaire/commitQuestionnaire'
            },
            //[业主|住户]模块 :
            household: {
                getHouseInfo: '/api/finger/household/getHouseInfo',

                //获取住户列表
                residentList: '/api/finger/household/getResidentList',

                //登记业主
                registerProprietor: '/api/finger/household/registerProprietor',

                //获取登陆用户房产列表
                getHouseList: '/api/finger/household/getUserHouses',

                //获取业主资料信息
                getProprietor: '/api/finger/household/getProprietor',

                //获取业主登记资料
                getProprietorOfRegister: '/api/finger/household/getProprietorOfRegister',

                //获取住户资料
                getResident: '/api/finger/household/getResident',

                //登记住户
                registerResident: '/api/finger/household/registerResident',

                //修改住户资料
                updateResident: '/api/finger/household/updateResident',

                //物业状态判断
                checkProprietorStatus: '/api/finger/household/checkProrietorStatus',

                //根据身份证查询客户信息
                getCustByIdNum: '/api/finger/household/getCustByIdNum',


            },

            //用户模块
            user: {
                createFeedback: '/api/finger/user/createResidentFeedback',

                //获取手机用户信息
                getUserByPhone: '/api/finger/user/getUserByPhone',//deprecate

                //修改用户信息
                updateUser: '/api/finger/user/updateUser',//deprecate

                //根据手机号码，获取用户信息
                getUserByMobile: '/api/base/uc/getUserByMobile', //deprecate

                //根据全局ID获取客户信息
                getCustByGlobalId: '/api/base/uc/getCustByGlobalId', //get

                // 修改客户信息
                modifyCust: '/api/base/uc/modifyCust', //get
            },

            //消息模块：
            message: {
                //获取消息历史
                msgHistory: '/api/finger/msg/getMsgHistory',

                //获取系统消息
                recordList: '/api/finger/msg/getMsgRecordList',

                //获取系统消息(新：更改接口)
                sysMsg: '/api/finger/msg/getMsgRecordPage',

                // 获取未读的消息的数量
                tipNum: '/api/finger/msg/getUnreadCountOfMsgRecord',

                //查看消息记录、根据消息业务id更新
                updateById: '/api/finger/msg/updateMsgRecordOfBusinessId',

                //查看消息记录、根据消息业务类型更新
                businessType: '/api/finger/msg/updateMsgRecordOfBusinessType',

            },

            //报事模块 :
            event: {
                //用户[业主|住户]对报事进行评价
                accepterEval: '/api/finger/event/createEventAccepterEval',

                //创建报事咨询
                eventConsult: '/api/finger/event/createEventConsult',

                //用户[业主|住户]创建报事
                create: '/api/finger/event/createEventReport',

                //获取报事的所有咨询与回复
                consultList: '/api/finger/event/getEventConsultList',

                //用户[业主|住户]获取历史报事
                reportList: '/api/finger/event/getEventReportList',

                //用户[业主|住户]对报事进行评价时，获取报事的办理人
                eventStaffList: '/api/finger/event/getEventStaffList',
            },

            //物业模块
            property: {
                //未读消息
                tipNum: '/api/finger/project/getNoticeUnreadCount',

                //通知列表
                noticeList: '/api/finger/project/getNoticesList',

                //通知信息
                getNotice: '/api/finger/project/getNotice',

                //物业须知
                projectNoticeList: '/api/finger/project/getProjectNoticeList',

                //物业须知信息
                getProjectNotice: '/api/finger/project/getProjectNotice',

                //保存通知浏览几率
                saveNoticeBrowse: '/api/finger/project/saveNoticeBrowse',

                //获取客服电话
                getPhone: '/api/finger/project/getProject',


            },

            //门禁
            door: {

                //下发开门指令
                open: '/api/finger/guard/openDoor',

                //获取门禁密码
                getPasswd: '/api/finger/guard/getGuardPassword',

                //获取门禁密码
                getDevice: '/api/finger/guard/getGuardDevice',

                //获取默认授权设备
                getPrivilegeDefDevice: '/api/finger/guard/getPrivilegeDefDevice',

                //获取门禁设备列表
                getPrivilegeDeviceList: '/api/finger/guard/getPrivilegeDeviceList',

                //设置默认授权设备
                setPrivilegeDefDevice: '/api/finger/guard/setPrivilegeDefDevice',
            },

            //费用
            fee: {
                //查询
                query: '/api/finger/fee/getFeeItemByFeedate',
                
                //获取 【月费用合计】 列表
                getSumList: '/api/finger/fee/getMonthFeeSumList',
                
                //获取【用户余额和未缴款总金额】
                getTotalFee: '/api/finger/fee/getBalanceAndNotPay',
                
                //获取【月费用明细】 列表
                getItemList: '/api/finger/fee/getMonthFeeItemList',
                
                //更新 缴费通知【浏览次数、浏览时间】
                browser: '/api/finger/fee/updateBrowseNumAndBowseTime',
                
                //获取仪表历史读数
                getCurrNumList: '/api/finger/fee/getCurrNumList',
            },

            
        }
    }

})(liefeng, window);